package com.trestristesmicos.anahuac;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;

public class VideoActivity extends Activity{
	
	Uri video;
	private VideoView mVideoView;
	@Override
    public void onCreate(Bundle icicle) {
		 super.onCreate(icicle);
		 setContentView(R.layout.videoviewer);
		 
		 Bundle reicieveParams = getIntent().getExtras();
	     video =  Uri.parse(reicieveParams.getString("uriVideo")); 	    
		 mVideoView = (VideoView)findViewById(R.id.surface_view);
		 if (video == null) { }
		 else
		 {
			 	mVideoView.setVideoURI(video);
	            mVideoView.setMediaController(new MediaController(this));
	            mVideoView.requestFocus();
	            mVideoView.start();
		 }
		 
	}
}

